package com.cya.lotterysystem.service.dto;

import com.cya.lotterysystem.service.enums.ActivityPrizeStatusEnum;
import com.cya.lotterysystem.service.enums.ActivityPrizeTiersEnum;
import com.cya.lotterysystem.service.enums.ActivityStatusEnum;
import com.cya.lotterysystem.service.enums.ActivityUserStatusEnum;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author ：陈奕安（3048279304@qq.com）
 * @date ：Created in 2025/11/3 23:49
 * @description：
 * @modified By：
 * @version:
 */
@Data
public class ActivityDetailDTO {

//    活动信息
    private Long activityId;

    /**
     * 活动名称
     */
    private String activityName;
    /**
     * 活动旁述
     */
    private String desc;
    /**
     * 活动状态
     */
    private ActivityStatusEnum status;

    public Boolean vaild(){
        return status.equals(ActivityStatusEnum.RUNNING);
    }




    //    奖品信息
        private List<PrizeDTO> prizeDTOList;

        @Data
        public static class PrizeDTO{
            private Long prizeId;

            private String name;

            private String description;

            private String imageUrl;

            private BigDecimal price;


            /**
             * 奖品等级枚举
             */
            private ActivityPrizeTiersEnum tiers;

            private Long prizeAmount;

            /**
             *
             */
            private ActivityPrizeStatusEnum status;

            public Boolean vaile(){
                return status.equals(ActivityPrizeStatusEnum.INIT);
            }


        }
//    人员信息】

    public List<UserDTO> userDTOList;

        @Data
        public static class UserDTO{
            private Long userId;

            private String userName;

            private ActivityUserStatusEnum status;
            public Boolean vaile(){
                return status.equals(ActivityUserStatusEnum.INIT);
            }

        }


}